import request from "@/utils/request"

// POST 请求
export function httpAction(url, data) {
  return request(url, data)
}

// 获取参数配置
export function getConfigure() {
  return request("/api/watermark/threshold", null, {
    method: "GET"
  })
}

// 登录验证码
export function fetchVerifyCode() {
  return request("auth/code", null, {
    method: "GET"
  })
}

//登录
export function fetchLogin(data) {
  return request("auth/login", data)
}
